package com.bbzn.device.client.service.impl;

import com.bbzn.device.client.dao.resource.StaticResourcesMapper;
import com.bbzn.device.client.dataobject.StaticResources;
import com.bbzn.device.client.service.StaticResourcesService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: 曾俞钧
 * @Date : 2021/3/29 11:26
 * @Version 1.0
 */
@Service
public class StaticResourcesServiceImpl implements StaticResourcesService {

    @Resource
    private StaticResourcesMapper staticResourcesMapper;

    @Override
    public int deleteByPrimaryKey(Integer pictureId) {
        return staticResourcesMapper.deleteByPrimaryKey(pictureId);
    }

    @Override
    public int insert(StaticResources record) {
        return staticResourcesMapper.insert(record);
    }

    @Override
    public int insertOrUpdate(StaticResources record) {
        return staticResourcesMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(StaticResources record) {
        return staticResourcesMapper.insertOrUpdateSelective(record);
    }

    @Override
    public int insertSelective(StaticResources record) {
        return staticResourcesMapper.insertSelective(record);
    }

    @Override
    public StaticResources selectByPrimaryKey(Integer pictureId) {
        return staticResourcesMapper.selectByPrimaryKey(pictureId);
    }

    @Override
    public int updateByPrimaryKeySelective(StaticResources record) {
        return staticResourcesMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(StaticResources record) {
        return staticResourcesMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<StaticResources> list) {
        return staticResourcesMapper.updateBatch(list);
    }

    @Override
    public int batchInsert(List<StaticResources> list) {
        return staticResourcesMapper.batchInsert(list);
    }

    @Override
    public List<StaticResources> advertisementList(StaticResources resources) {
        return staticResourcesMapper.advertisementList(resources);
    }

}
